package com.bawei.module_main.ui.splash

import com.bawei.lib_net.BaseResponse
import com.bawei.module_main.http.MainApi
import com.bawei.module_main.http.MainNetModule
import com.bawei.module_main.model.AdModel
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.flow
import kotlinx.coroutines.flow.flowOn
import javax.inject.Inject

/**
 * @author yaotianxue
 * @description
 * @date 2025/5/26
 */
class SplashRepository @Inject constructor(){
    @Inject
    @MainNetModule.CommonMainApi
    lateinit var mainApi: MainApi

    fun adList() = flow {
        emit(mainApi.adList())
    }.flowOn(Dispatchers.IO)
}